from torch.linalg import solve_ex


class student(object):
    def __init__(self, name, age,student_id,height,weight,address,phone_number,grade):
        self.name = name
        self.age = age
        self.student_id = student_id
        self.height = height
        self.weight = weight
        self.address = address
        self.phone_number = phone_number
        self.grade = grade
    def study(self,times):
        return times
    def play(self,name):
        return name
    def programming(self,he):
        return he
    def sum1(self,*args):
        su=0
        for i in args:
            su=su+i
        return su

#stu1 =student("李慧成",22,1,35,55,1234,12345678,99)
#stu1.study(60)
#print('今天学习了'+str(stu1.study(60))+'分钟')
#print('今天玩了'+stu1.play('狼人杀'))
#print('今天编程了'+str(stu1.programming(100))+'行')
#t=stu1.sum1(1,2,3,4)
#print('计算1,2,3,4的值为'+str(t))

class Car(object):
    def __init__(self,car_id,wheel,color,weight,capacity):
        self.wheel = wheel
        self.car_id = car_id
        self.color = color
        self.weight = weight
        self.capacity = capacity
    def run(self,pr):
        print(self.car_id+pr)

car=Car('法拉利',4,'blue',70,100)
#car.run("越野超强")
car1=Car('宝马',4,'blue',70,100)
car2=Car('铃木',4,'blue',70,100)
car3=Car('五菱',4,'blue',70,100)
car4=Car('拖拉机',4,'blue',70,100)


class Notebook(object):
    def __init__(self,no_id,time,color,weight,capacity,cpu,yp):
        self.no_id = no_id
        self.time = time
        self.color = color
        self.weight = weight
        self.capacity = capacity
        self.cpu = cpu
        self.yp = yp
    def play(self,pr):
        print('使用'+self.no_id+'玩'+pr)
    def wps(self):
        print("办公")
a=Notebook('华硕电脑','3天','黑色','10','16','8','200')
#a.play('英雄联盟')
#a.wps()

class Monkey(object):
    def __init__(self,type1,sex,color,weight):
        self.type1 = type1
        self.sex=sex
        self.color = color
        self.weight = weight
    def fire(self,things):
        print('一只'+self.type1+'的'+self.sex+'猴子'+'使用'+things+'造火')
    def study(self,*args):
        for thing in args:
            print('猴子学习'+thing)
monkey=Monkey('灵长类','雄','灰','30kg')
monkey.fire("木材和打火石")
monkey.study('做饭','狩猎','生活','洗衣')